function Student(name,age){
        this.name=name;
        this.age=age;
        this.introduce=function(){
            console.log('大家好,我叫'+this.name+',今年'+this.age+'岁');
        };
    }
    var stu1=new Student('小明',18);
    var stu2=new Student('小强',19);
    var stu3=new Student('小红',18);
    stu3.introduce();